import 'package:flutter/material.dart';

class NoAddress extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Center(
      child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: [
          Container(
            child: Image.asset(
              'images/address/address.png',
              width: 66,
              height: 66,
            ),
          ),
          Container(
            margin: EdgeInsets.only(top: 30, bottom: 30),
            child: Text(
              '您还没有添加收货地址，请新增收货地址',
              style: TextStyle(color: Color.fromRGBO(153, 153, 153, 1)),
            ),
          ),
          SizedBox(
            width: 211,
            height: 48,
            child: ElevatedButton(
              onPressed: () {
                Navigator.pushNamed(context, 'add');
              },
              style: ElevatedButton.styleFrom(primary: Colors.black),
              child: Row(
                mainAxisAlignment: MainAxisAlignment.center,
                children: [
                  Icon(
                    Icons.add,
                    color: Colors.white,
                  ),
                  Container(
                    margin: EdgeInsets.only(left: 5),
                    child: Text(
                      '新增收货地址',
                      style: TextStyle(color: Colors.white, fontSize: 16),
                    ),
                  )
                ],
              ),
            ),
          )
        ],
      ),
    );
  }
}
